﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Markup;

namespace nRoute.Controls
{
#if SILVERLIGHT
    [TemplateVisualState(Name = NavigationContainer.UNNAVIGATED_STATE, GroupName = NavigationContainer.NAVIGATION_STATES)]
    [TemplateVisualState(Name = NavigationContainer.NAVIGATING_SATE, GroupName = NavigationContainer.NAVIGATION_STATES)]
    [TemplateVisualState(Name = NavigationContainer.NAVIGATED_STATE, GroupName = NavigationContainer.NAVIGATION_STATES)]
    [TemplateVisualState(Name = NavigationContainer.NAVIGATION_FAILED_STATE, GroupName = NavigationContainer.NAVIGATION_STATES)]
#endif
    [ContentProperty]
    public partial class StatefulBrowsingContainer
         : NavigationContainer
    {
        protected override void InitializeComponent()
        {
            // call the base 
            base.InitializeComponent();

            // we use the same style
            this.DefaultStyleKey = typeof(NavigationContainer);
        }
    }
}
